using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;
using OgilvyOne.BLL;
using OgilvyOne.IDAL;

namespace OgilvyOne.ProcessFlow
{
    public class DownLoadController
    {
        // Methods
        public bool CreateDownLoad(DownLoadInfo downloadinfo)
        {
            try
            {
                new DownLoad().Insert(downloadinfo);
            }
            catch
            {
                return false;
            }
            return true;
        }

        public bool DeleteDownLoad(int download_id)
        {
            try
            {
                new DownLoad().Delete(download_id);
            }
            catch
            {
                return false;
            }
            return true;
        }

        public void UpdateDownload(DownLoadInfo downloadinfo)
        {
            new DownLoad().Update(downloadinfo);
        }

    }
}
